#ifndef __REMOTE_COMPUTE_EXEC_THREAD_H__
#define __REMOTE_COMPUTE_EXEC_THREAD_H__

#include <pthread.h>
#include "device/type.h"

#define THREAD_POOL_SIZE 2

typedef struct _exe_thread {
    TaskList* taskQue;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    pthread_t tid;
} ExecThread;

void* TaskThreadLoop(void* args);

RC_Status CreateExecThread(ExecThread* thread);
RC_Status ExecThreadDestroy(ExecThread* thread);

#endif // __REMOTE_COMPUTE_EXEC_THREAD_H__